package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName role
 */

@Schema(description = "角色信息")
@EqualsAndHashCode(callSuper = true)
@TableName(value ="role")
@Data
public class Role extends BaseEntity implements Serializable {

    @Schema(description = "角色名")
    private String roleName;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "描述")
    private String description;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public static String entityTitle="角色";

    public static Map<String,String> getExcelCols(){
        Map<String,String> map=new LinkedHashMap<>();
        map.put("roleName","角色名");
        map.put("roleCode","角色编码");
        map.put("description","描述");
        map.put("status","状态");
        return map;
    }
}